/*
 * lock.cpp
 * Scoped lock implementation.
 *  Created on: 22/05/2011
 *      Author: wadi
 */

#include "lock.h"

Lock::Lock(Mutex& m):mutex(m) {
    mutex.lock();
}

Lock::~Lock() {
    mutex.unlock();
}
